from rest_framework import serializers

from api.models import DomainTopN, NXDomainRate, QPM


class DomainTopNModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = DomainTopN
        # fields = "__all__"
        exclude = ["id"]


class NXDomainRateModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = NXDomainRate
        fields = "__all__"


class QPMModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = QPM
        fields = "__all__"
